Don't use -Wnull-dereference when assertions are
disabled, since that causes the compiler to see
NULL everywhere.
'-Wmissing-include-dirs',
'-Wmissing-noreturn',
'-Wnested-externs',
- '-Wnull-dereference',
'-Wold-style-definition',
'-Wpointer-arith',
'-Wshadow',
if cc.get_id() == 'gcc'
test_cflags += ['-Wcast-align'] # This warns too much on clang
endif
+
+ if not gtk_debug_cflags.contains('-DG_DISABLE_ASSERT')
+ test_cflags += ['-Wnull-dereference'] # Too noisy when assertions are disabled
+ endif
else
test_cflags = []
endif